import React from 'react'
import { getMenuSub } from 'services/utils'
import { Icon } from 'antd'
import Online from './pages/online'
import Flag from 'config/flag'

const routes = {
  path: '/proto-chart',
  name: '数据图表类',
  childRoutes: [
    //{ path: 'default', name: 'Home', component: Screen, isIndex: true },
    { 
      path: 'online', 
      name: '在线玩家统计', 
      component: Online, 
      flags: Flag['/proto-chart/online']
    },
  ]
}// 

export default routes

export const menuSub = getMenuSub(routes, {
    key:   `proto-chart`, 
    //name:  `帐号管理`, 
    icon:  <Icon type="line-chart" />
  })